/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.srp.srp.compliance.impl;

import za.ac.cput.sevenpriciples.srp.srp.Worker;

/**
 *
 * @author 210227257
 */
public class CalculationsImpl implements Worker{
    private final static double hourlyRate = 150.00;
    private final static int taxRate = 25;
    private static int workerAmount;
    public CalculationsImpl(EmployeeImp employee){
        workerAmount = employee.getHoursWorked();
    }
    @Override
    public double salary() {
        return workerAmount * hourlyRate;
    }
    
    @Override
    public double tax() {
        return this.salary() * taxRate / 100.00;
    } 
}
